/** 全局共享数据，通过上下文对象共享 */
import { createContext } from "react"

// 声明共享数据
export const data = {
  name: "前端REACT",
  teacher: "大牧",
  techs: [
    { id: 1, name: "react" },
    { id: 2, name: "react-router-dom" },
    { id: 3, name: "redux" },
    { id: 4, name: "react-redux" },
    { id: 5, name: "axios" },
    { id: 6, name: "redux-thunk" },
    { id: 7, name: "redux-devtools" },
    { id: 8, name: "reselect repure" }
  ]
}

export default createContext(data)